<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="API docs for the FlutterUnipayPlugin class from the flutter_unipay_plugin library, for the Dart programming language.">
  <title>FlutterUnipayPlugin class - flutter_unipay_plugin library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">

</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">flutter_unipay_plugin</a></li>
    <li><a href="flutter_unipay_plugin/flutter_unipay_plugin-library.html">flutter_unipay_plugin</a></li>
    <li class="self-crumb">FlutterUnipayPlugin class</li>
  </ol>
  <div class="self-name">FlutterUnipayPlugin</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <h5>flutter_unipay_plugin library</h5>
    <ol>
      <li class="section-title"><a href="flutter_unipay_plugin/flutter_unipay_plugin-library.html#classes">Classes</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin-class.html">FlutterUnipayPlugin</a></li>
    
    
    
    
    
    
    
    </ol>
  </div>

  <div class="col-xs-12 col-sm-9 col-md-8 main-content">
      <h1>FlutterUnipayPlugin class </h1>

    <section class="desc markdown">
      <p>银联全渠道-手机控件支付 flutter插件</p>
    </section>
    

    <section class="summary offset-anchor" id="constructors">
      <h2>Constructors</h2>

      <dl class="constructor-summary-list">
        <dt id="FlutterUnipayPlugin" class="callable">
          <span class="name"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/FlutterUnipayPlugin.html">FlutterUnipayPlugin</a></span><span class="signature">()</span>
        </dt>
        <dd>
          
        </dd>
      </dl>
    </section>

    <section class="summary offset-anchor inherited" id="instance-properties">
      <h2>Properties</h2>

      <dl class="properties">
        <dt id="hashCode" class="property inherited">
          <span class="name"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/hashCode.html">hashCode</a></span>
          <span class="signature">&#8594; int</span> 
        </dt>
        <dd class="inherited">
          The hash code for this object. <a href="flutter_unipay_plugin/FlutterUnipayPlugin/hashCode.html">[...]</a>
          <div class="features">read-only, inherited</div>
</dd>
        <dt id="runtimeType" class="property inherited">
          <span class="name"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/runtimeType.html">runtimeType</a></span>
          <span class="signature">&#8594; Type</span> 
        </dt>
        <dd class="inherited">
          A representation of the runtime type of the object.
          <div class="features">read-only, inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor inherited" id="instance-methods">
      <h2>Methods</h2>
      <dl class="callables">
        <dt id="noSuchMethod" class="callable inherited">
          <span class="name"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation">Invocation</span> <span class="parameter-name">invocation</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
          </dt>
        <dd class="inherited">
          Invoked when a non-existent method or property is accessed. <a href="flutter_unipay_plugin/FlutterUnipayPlugin/noSuchMethod.html">[...]</a>
          <div class="features">inherited</div>
</dd>
        <dt id="toString" class="callable inherited">
          <span class="name"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/toString.html">toString</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; String</span>
          </span>
          </dt>
        <dd class="inherited">
          Returns a string representation of this object.
          <div class="features">inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor inherited" id="operators">
      <h2>Operators</h2>
      <dl class="callables">
        <dt id="operator ==" class="callable inherited">
          <span class="name"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation">dynamic</span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; bool</span>
          </span>
          </dt>
        <dd class="inherited">
          The equality operator. <a href="flutter_unipay_plugin/FlutterUnipayPlugin/operator_equals.html">[...]</a>
          <div class="features">inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="static-properties">
      <h2>Static Properties</h2>

      <dl class="properties">
        <dt id="platformVersion" class="property">
          <span class="name"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/platformVersion.html">platformVersion</a></span>
          <span class="signature">&#8594; Future<span class="signature">&lt;<wbr><span class="type-parameter">String</span>&gt;</span></span> 
        </dt>
        <dd>
          
          <div class="features">read-only</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="static-methods">
      <h2>Static Methods</h2>
      <dl class="callables">
        <dt id="upPay" class="callable">
          <span class="name"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/upPay.html">upPay</a></span><span class="signature">(<wbr><span class="parameter" id="upPay-param-tn"><span class="type-annotation">String</span> <span class="parameter-name">tn</span>, </span> <span class="parameter" id="upPay-param-mode"><span class="type-annotation">String</span> <span class="parameter-name">mode</span></span>)
            <span class="returntype parameter">&#8594; Future</span>
          </span>
          </dt>
        <dd>
          发送交易请求流水号<code>tn</code>，接入<code>mode</code>对应的银联环境，进行支付 <a href="flutter_unipay_plugin/FlutterUnipayPlugin/upPay.html">[...]</a>
          
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="constants">
      <h2>Constants</h2>

      <dl class="properties">
        <dt id="MESSAGE_CHANNEL_NAME" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/MESSAGE_CHANNEL_NAME-constant.html">MESSAGE_CHANNEL_NAME</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          简单字符串消息传递信道名称
          
  <div>
            <span class="signature"><code>&#39;com.nbp.msg.flutter_unipay_plugin&#39;</code></span>
          </div>
        </dd>
        <dt id="METHOD_CHANNEL_NAME" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/METHOD_CHANNEL_NAME-constant.html">METHOD_CHANNEL_NAME</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          方法调用信道名称
          
  <div>
            <span class="signature"><code>&#39;com.nbp.flutter_unipay_plugin&#39;</code></span>
          </div>
        </dd>
        <dt id="UP_PAY_CANCEL" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_CANCEL-constant.html">UP_PAY_CANCEL</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          支付结果: 支付取消
          
  <div>
            <span class="signature"><code>&quot;7777&quot;</code></span>
          </div>
        </dd>
        <dt id="UP_PAY_DONE" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_DONE-constant.html">UP_PAY_DONE</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          支付结果: 支付完成无结果
          
  <div>
            <span class="signature"><code>&quot;6666&quot;</code></span>
          </div>
        </dd>
        <dt id="UP_PAY_EXCEPTION" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_EXCEPTION-constant.html">UP_PAY_EXCEPTION</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          支付结果: 异常发生
          
  <div>
            <span class="signature"><code>&quot;8888&quot;</code></span>
          </div>
        </dd>
        <dt id="UP_PAY_FAIL" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_FAIL-constant.html">UP_PAY_FAIL</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          支付结果: 失败
          
  <div>
            <span class="signature"><code>&quot;9999&quot;</code></span>
          </div>
        </dd>
        <dt id="UP_PAY_MODE_PROD" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_MODE_PROD-constant.html">UP_PAY_MODE_PROD</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          支付环境: "00" - 启动银联正式环境
          
  <div>
            <span class="signature"><code>&quot;00&quot;</code></span>
          </div>
        </dd>
        <dt id="UP_PAY_MODE_TEST" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_MODE_TEST-constant.html">UP_PAY_MODE_TEST</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          支付环境: "01" - 连接银联测试环境
          
  <div>
            <span class="signature"><code>&quot;01&quot;</code></span>
          </div>
        </dd>
        <dt id="UP_PAY_RESULT_K_CODE" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_RESULT_K_CODE-constant.html">UP_PAY_RESULT_K_CODE</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          支付结果报文json格式 { 'code':'' <code>, 'data':'', 'sign':'', 'error':''</code> }
          
  <div>
            <span class="signature"><code>&#39;code&#39;</code></span>
          </div>
        </dd>
        <dt id="UP_PAY_RESULT_K_DATA" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_RESULT_K_DATA-constant.html">UP_PAY_RESULT_K_DATA</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          支付结果报文json格式 { 'code':'' <code>, 'data':'', 'sign':'', 'error':''</code> }
          
  <div>
            <span class="signature"><code>&#39;data&#39;</code></span>
          </div>
        </dd>
        <dt id="UP_PAY_RESULT_K_ERROR" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_RESULT_K_ERROR-constant.html">UP_PAY_RESULT_K_ERROR</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          支付结果报文json格式 { 'code':'' <code>, 'data':'', 'sign':'', 'error':''</code> }
          
  <div>
            <span class="signature"><code>&#39;error&#39;</code></span>
          </div>
        </dd>
        <dt id="UP_PAY_RESULT_K_SIGN" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_RESULT_K_SIGN-constant.html">UP_PAY_RESULT_K_SIGN</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          支付结果报文json格式 { 'code':'' <code>, 'data':'', 'sign':'', 'error':''</code> }
          
  <div>
            <span class="signature"><code>&#39;sign&#39;</code></span>
          </div>
        </dd>
        <dt id="UP_PAY_SUCCESS" class="constant">
          <span class="name "><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_SUCCESS-constant.html">UP_PAY_SUCCESS</a></span>
          <span class="signature">&#8594; const String</span>
          </dt>
        <dd>
          支付结果: 正常
          
  <div>
            <span class="signature"><code>&quot;0000&quot;</code></span>
          </div>
        </dd>
      </dl>
    </section>

  </div> <!-- /.main-content -->

  <div class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
    <ol>
      <li class="section-title"><a href="flutter_unipay_plugin/FlutterUnipayPlugin-class.html#constructors">Constructors</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/FlutterUnipayPlugin.html">FlutterUnipayPlugin</a></li>
    
      <li class="section-title inherited">
        <a href="flutter_unipay_plugin/FlutterUnipayPlugin-class.html#instance-properties">Properties</a>
      </li>
      <li class="inherited"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title inherited"><a href="flutter_unipay_plugin/FlutterUnipayPlugin-class.html#instance-methods">Methods</a></li>
      <li class="inherited"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/noSuchMethod.html">noSuchMethod</a></li>
      <li class="inherited"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/toString.html">toString</a></li>
    
      <li class="section-title inherited"><a href="flutter_unipay_plugin/FlutterUnipayPlugin-class.html#operators">Operators</a></li>
      <li class="inherited"><a href="flutter_unipay_plugin/FlutterUnipayPlugin/operator_equals.html">operator ==</a></li>
    
      <li class="section-title"><a href="flutter_unipay_plugin/FlutterUnipayPlugin-class.html#static-properties">Static properties</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/platformVersion.html">platformVersion</a></li>
    
      <li class="section-title"><a href="flutter_unipay_plugin/FlutterUnipayPlugin-class.html#static-methods">Static methods</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/upPay.html">upPay</a></li>
    
      <li class="section-title"><a href="flutter_unipay_plugin/FlutterUnipayPlugin-class.html#constants">Constants</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/MESSAGE_CHANNEL_NAME-constant.html">MESSAGE_CHANNEL_NAME</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/METHOD_CHANNEL_NAME-constant.html">METHOD_CHANNEL_NAME</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_CANCEL-constant.html">UP_PAY_CANCEL</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_DONE-constant.html">UP_PAY_DONE</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_EXCEPTION-constant.html">UP_PAY_EXCEPTION</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_FAIL-constant.html">UP_PAY_FAIL</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_MODE_PROD-constant.html">UP_PAY_MODE_PROD</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_MODE_TEST-constant.html">UP_PAY_MODE_TEST</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_RESULT_K_CODE-constant.html">UP_PAY_RESULT_K_CODE</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_RESULT_K_DATA-constant.html">UP_PAY_RESULT_K_DATA</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_RESULT_K_ERROR-constant.html">UP_PAY_RESULT_K_ERROR</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_RESULT_K_SIGN-constant.html">UP_PAY_RESULT_K_SIGN</a></li>
      <li><a href="flutter_unipay_plugin/FlutterUnipayPlugin/UP_PAY_SUCCESS-constant.html">UP_PAY_SUCCESS</a></li>
    </ol>
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    flutter_unipay_plugin 0.0.1
  </span>

</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
